.fc {

	.fc-toolbar {
		h2 {
			color: $color-dark;
			font-size: 1.2rem;
			font-weight: bold;

			&:before {
				color: $color-primary;
				content: "\f073";
				display: inline-block;
				font-family: 'Font Awesome 6 Free';
				font-weight: 900;
				font-size: 1.8rem;
				font-style: normal;
				line-height: 1;
				margin-right: 10px;
				position: relative;
				top: 2px;
				-webkit-font-smoothing: antialiased;
			}
		}
		.btn {
		    background: #FFF;
		    box-shadow: none;
		    text-shadow: none;
		    font-size: 0.9em;
		    padding: 7px 1.1em 6px;
		    height: auto;
		    border: 1px solid rgba(0, 0, 0, 0.15);
		    color: #212121;
			&.fc-state-active,
			&.active {
				color: #FFF;
				box-shadow: none !important;
			}
		}
	}

	.fc-day-grid-container {
		overflow: visible !important;
		height: auto !important;
	}

	.fc-widget-header {
		th {
			line-height: 35px;
		}
	}

	.fc-event {
		color: #FFF !important;
	}

	.table-bordered {
		a {
			text-decoration: none;
		}
		thead {
			th {
				border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
			}
		}
		td, th {
			border-color: rgba(0, 0, 0, 0.1);
		}
	}

	.fc-daygrid-event {
		line-height: 16px;
		padding-left: 4px;
		padding-right: 4px;
		.fc-event-title {
			font-weight: 400;
		}
		.fc-event-time {
			font-weight: 800;
		}
	}
}

// STATES
// -----------------------------------------------------------------------------
/* Fullcalendar - Event States */
/* Buttons - States */
.fc-event.fc-event-default {
	background: $color-default;
	border-color: $color-default;

	.fc-event-inner {
		color: $color-default-inverse;
	}
}

a.fc-event.fc-event-default:hover {
	color: $color-default-inverse;
}

@each $state in $states {
	.fc-event.fc-event-#{nth($state,1)} {
		background: #{nth($state,2)};
		border-color: #{nth($state,2)};

		.fc-event-inner {
			color: #{nth($state,3)};
		}
	}

	a.fc-event.fc-event-#{nth($state,1)}:hover {
		color: #{nth($state,3)};
	}
}

// EXTERNAL EVENTS
// -----------------------------------------------------------------------------
/* Fullcalendar - External Events */
.external-event {
	cursor: move;
	display: inline-block;
	font-size: 0.75rem;
	font-weight: normal;
	margin: 5px;
	padding: 10px;
	text-align: left;
}

// DARK SKIN
// -----------------------------------------------------------------------------\
/* dark */
html.dark {
	.fc {

		.fc-toolbar {
			h2 {
				color: #FFF;
			}
			.fc-button {
				background: $dark-color-2;
				color: #FFF;
			}
		}
	}

	.fc-unthemed th,
	.fc-unthemed td,
	.fc-unthemed thead,
	.fc-unthemed tbody,
	.fc-unthemed .fc-divider,
	.fc-unthemed .fc-row,
	.fc-unthemed .fc-popover {
		border-color: rgba(0, 0, 0, 0.3);
	}

	.fc-unthemed .fc-today {
		background: $dark-color-2;
	}
}